@import "lib/normalize";
/*初始化*/
* {
  padding: 0;
  margin: 0;
  //color: #fff;
  outline: none;
}

$a-default-color: #fff;
a {
  color: $a-default-color;
  text-decoration: none;
  &:hover, &:visited {
    color: $a-default-color;
  }
}

li {
  list-style-type: none;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #616161;
  word-wrap: break-word;
  min-width: 1210px;
}

/*头部导航*/
.header-top {
  height: 60px;
  background: #212121;
  padding: 0 20px;
}

.logo, .nav-bar, .search, .nav-bar, .nav-user {
  height: 100%;
  display: inline-block;
}

.logo {
  float: left;
  img {
    border-radius: 10px;

  }
}

/*搜索栏*/
.search {
  color: #fff;
  margin: 14px 0;
  float: right;
  input {
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    color: #333;
  }
  span {
    margin: 0 15px;
  }
}

/*头部一级菜单*/
.nav-bar-menu {
  height: 100%;
  margin-left: 20px;
  li {
    position: relative;
    height: 100%;
    display: inline-block;
    margin-right: 40px;
    a {
      height: 100%;
      width: 100%;
      display: block;
      line-height: 60px;
      &:hover {
        //background: #363C41;
        //color: #46c37b;
        //color: #363C41;
        i {
          //color: #46c37b;
        }
      }
    }
  }
}

/*二级菜单*/
.all-menu-course {
  z-index: 99999999999999999;
  display: none;
  position: absolute;
  background: #fff;
  left: -20px;
  top: 60px;
  width: 126px;
  text-align: center;
  border-radius: 5px;
  border: none;
  li {
    position: relative;
    height: 40px;
    width: 100%;
    display: block;
  }
  a {
    line-height: 40px !important;
    color: #333;
    &:hover {
      background: rgb(66, 150, 197);
      color: #fff !important;
    }
  }
}

.li-all-course:hover .all-menu-course {
  display: block;
}

.all-menu-course > li:hover .menu-course-sub {
  display: block;
}

/*三级菜单*/
.menu-course-sub {
  display: none;
  position: absolute;
  top: 0px;
  left: 127px;
  background-color: #fff;
  border-radius: 5px;
  width: 100%;
}

/*ad页面*/
.div-slide-ad {
  .swiper-container {
    top: -28px;
    width: 100%;
    height: 300px;
    img {
      width: 100%;
      height: 300px;
    }
  }
  .pagination {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 10px;
    /*轮播选择按钮*/
    .swiper-pagination-switch {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 8px;
      background: #222;
      margin-right: 8px;
      opacity: 0.8;
      border: 1px solid #fff;
      cursor: pointer;
    }
    .swiper-visible-switch {
      background: #aaa;
    }
    .swiper-active-switch {
      background: #fff;
    }
  }
}

/*课程section*/
.course-section {
  margin: 0 10%;
  text-align: center;
  h1{
    margin:-5px  0;
  }
  .course-list-course {
    width: 80%;
    float: left;
  }
  .video-rank {
    float: right;
    display: inline-block;
  }
}

.course-section:after {
  content: "";
  display: block;
  clear: both;
}

/*tag导航栏*/
.course-list-course-nav {
  ul {
    text-align: left;
    margin-bottom: 10px;
    li {
      display: inline-block;
      margin-right: 30px;
      a {
        color: #333;
        border-radius: 4px;
        padding: 10px 15px;
        display: block;
        &:hover {
          background-color: rgb(66, 150, 197);
          color: #fff;
        }
      }
    }
  }

}

/*tab切换课程页面*/
.warp_show {
  background-color: rgb(66, 150, 197);
  color: #fff !important;
}

/*课程页*/
.warp {
  display: none;
  width: 100%;
  .div-courses {
    margin-bottom: 15px;
    width: 30%;
    margin-right: 3%;
    float: left;
    border-bottom: 1px solid #ccc;
    box-shadow: 3px 6px 20px #ccc;
    border-radius: 5px;
    img {
      width: 100%;
      border-radius: 5px;
      height: 150px;
    }
    .cont {
      text-align: left;
      .title {
        margin: 5px;
      }
      .clicks {
        font-size: 12px;
        color: #666;
        margin: 5px 10px 8px 10px;
      }
    }
    span {
      color: #333;
      display: block;
    }
  }
}

/*视频排行*/
.video-rank {
  text-align: center;
  width: 20%;
  .title {
    float: left;
    text-align: left;
    border-radius: 4px;
    padding: 10px 15px;
    background-color: #4296c5;
    color: #fff;
    margin-bottom: 10px;
  }

  .videos-list {
    clear: both;
    background-color: #fff;
    margin-top: 20px;
    text-align: left;
    li {
      padding: 15px 15px;
    }
    a {
      padding: 0 6px;
      margin-left:1px ;
      //border-left: 1px solid rgb(66, 150, 197);
      color: #333;
      display: block;
      &:hover {
        margin-left:0;
        color: rgb(66, 150, 197);
        border-left: 1px solid rgb(66, 150, 197);
      }
      span {
        width: 20px;
        display: inline-block;
        color: #8f8F8F;
      }
    }
  }
}

/*网站介绍*/
.introduction-section {
  margin: 50px 0 0 0;
  padding: 50px 0;
  position: relative;
  background-color: rgb(66, 150, 197);
  text-align: center;
  .xxaq {
    width: 390px;
    text-align: center;
    display: inline-block;
    img {
      width: 45%;
    }
  }
}

/*teacher-section*/

.teacher-section {
  text-align: center;
  .items-teacher-div {
    padding-bottom: 20px;
    width: 15%;
    border-bottom: 1px solid #ccc;
    margin: 25px 50px;
    display: inline-block;
    span {
      display: block;
      margin-top: 10px;
    }
    .teacher-name {
      font-weight: bold;
    }
    .teacher-intro {
      text-indent: 2em;
      text-align: left;
      color: #919191;
      width: 100%;
      word-wrap: break-word;
      margin-top: 30px;
    }
    img {
      width: 60%;
      border-radius: 100%;
    }
  }
}

/*footer*/
footer {
  color: #CCC;
  text-align: center;
  background-color: #333;
  padding: 30px;
  font-size: 14px;
  span {
    display: block;
  }
}
